import {Component, OnInit} from '@angular/core';
import {TimerService} from "../timer.service";

@Component({
  selector: 'app-myc02-user-login',
  templateUrl: './myc02-user-login.component.html',
  styleUrls: ['./myc02-user-login.component.css'],
  providers: [TimerService]
})
export class Myc02UserLoginComponent implements OnInit {

  constructor(private timer: TimerService) {
  }

  ngOnInit(): void {
  }

  doLogin() {
    // let start = new Date().getTime()

    this.timer.start()
    console.log("开始提交登录信息")
    console.log("登录成功")
    // let end = new Date().getTime()
    // console.log("登录耗时：", end - start)
    this.timer.end("登录")
  }

}
